import ReactDOM from 'react-dom';

// 载入默认全局样式 normalize 、.clearfix 和一些 mixin 方法等
import '@icedesign/base/reset.scss';
import '../public/images/chart.png';
import '../public/images/client.png';
import '../public/images/fail.jpg';
import '../public/images/statistical.png';
import '../public/images/success.jpg';
import '../public/images/time.png';
import '../public/images/list.png';

import router from './router';

const ICE_CONTAINER = document.getElementById('ice-container');

if (!ICE_CONTAINER) {
  throw new Error('当前页面不存在 <div id="ice-container"></div> 节点.');
}

ReactDOM.render(router, ICE_CONTAINER);
